package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IMoreMoreAffirmOrderActivityModel;
import com.wgts.wgts.mvp.model.imp.MoreMoreAffirmOrderActivityModel;
import com.wgts.wgts.mvp.presenter.IMoreMoreAffirmOrderActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.MoreMoreAffirmOrderActivityPresenter;
import com.wgts.wgts.mvp.view.IMoreMoreAffirmOrderActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class MoreMoreAffirmOrderActivityModule {

    private IMoreMoreAffirmOrderActivityView view;

    public MoreMoreAffirmOrderActivityModule(IMoreMoreAffirmOrderActivityView view) {
        this.view = view;
    }

    @Provides
    @ActivityScope
    public IMoreMoreAffirmOrderActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IMoreMoreAffirmOrderActivityModel provideModel(NetService netService){
        return new MoreMoreAffirmOrderActivityModel(netService);
    }

    @Provides
    @ActivityScope
    public IMoreMoreAffirmOrderActivityPresenter providePresenter(IMoreMoreAffirmOrderActivityModel model, IMoreMoreAffirmOrderActivityView view){
        return new MoreMoreAffirmOrderActivityPresenter(view, model);
    }
}
